﻿<%@ Page Title="Admin Opret Kontaktperson" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="adminContactPersonCreate.aspx.cs" Inherits="UCNKompetenceBors.Admin.adminContactPersonCreate" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="adminWrapper" class="contentSmallWrapper floatLeft">
        <div id="adminSubMenuBox" class="submenuBox floatLeft">
            <div class="subMenuBoxContent">
                <ul>
                    <li>
                        <asp:HyperLink ID="hyLinkAdminDashboard" runat="server" Text="Admin Dashboard"></asp:HyperLink></li>
                    <li>
                        <asp:HyperLink ID="hyLinkUserHandling" runat="server" Text="Brugerhåndtering"></asp:HyperLink></li>
                    <li>
                        <asp:HyperLink ID="hyLinkAdminExchange" runat="server" Text="Køb og Salg"></asp:HyperLink></li>
                    <li>
                        <asp:HyperLink ID="hyLinkNewsHandling" runat="server" Text="Nyhedshåndtering"></asp:HyperLink>
                    </li>
                    <li>
                        <asp:HyperLink ID="hyLinkEditInformation" runat="server" Text="Ret Information"></asp:HyperLink></li>
                    <li>
                        <asp:HyperLink ID="hyLinkContactPerson" runat="server" Text="kontaktpersoner"></asp:HyperLink>
                        <ul>
                            <li><asp:HyperLink ID="hyLinkCreateContactPerson" runat="server" Text="Opret kontaktperson" ForeColor="#FF9933"></asp:HyperLink></li>
                        </ul>
                    </li>
                    <li><asp:HyperLink ID="hylinkDepartment" runat="server" Text="Afdelinger"></asp:HyperLink></li>
                    <li>
                        <asp:HyperLink ID="hyLinkResetUsers" runat="server" Text="Reset Brugere"></asp:HyperLink></li>
                </ul>
            </div>
        </div>

        <div id="adminContentBox" class="contentBoxSmall floatLeft">
            <div id="adminContentBoxContent" class="floatLeft">
                <div class="inputFormSmall floatLeft">
                    <asp:Panel ID="panAdminCreateContactPerson" runat="server">
                        <div class="inputFormSmallLeft floatLeft">
                            <div class="inputFormSmallRow floatLeft">
                                <asp:Label ID="lblAdminContentHeader" runat="server" Text="Opret Kontaktperson" CssClass="contentTitle"></asp:Label>
                            </div>
                            <div class="inputFormSmallRow floatLeft">
                                <div class="inputFormSmallCellLeft floatLeft">
                                    <asp:Label ID="lblCreateContactPersonFName" runat="server" Text="Fornavn:"></asp:Label>
                                </div>
                                <div class="inputFormSmallCellRight floatRight">
                                    <asp:TextBox ID="txtCreateContactPersonFName" runat="server" Width="300px"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="rfvalFname" runat="server" ErrorMessage="First name is required" ToolTip="First name is required" Text="*" ControlToValidate="txtCreateContactPersonFName" ValidationGroup="AdminCreateContactPerson" ForeColor="Red"></asp:RequiredFieldValidator>
                                </div>
                            </div>

                            <div class="inputFormSmallRow floatLeft">
                                <div class="inputFormSmallCellLeft floatLeft">
                                    <asp:Label ID="lblCreateContactPersonLName" runat="server" Text="Efternavn:"></asp:Label>
                                </div>
                                <div class="inputFormSmallCellRight floatRight">
                                    <asp:TextBox ID="txtCreateContactPersonLName" runat="server" Width="300px"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="rfvalLName" runat="server" ErrorMessage="Last name is required" ToolTip="Last name is required" Text="*" ControlToValidate="txtCreateContactPersonLName" ValidationGroup="AdminCreateContactPerson" ForeColor="Red"></asp:RequiredFieldValidator>
                                </div>
                            </div>

                            <div class="inputFormSmallRow floatLeft">
                                <div class="inputFormSmallCellLeft floatLeft">
                                    <asp:Label ID="lblCreateContactPersonPhone" runat="server" Text="Telefon:"></asp:Label>
                                </div>
                                <div class="inputFormSmallCellRight floatRight">
                                    <asp:TextBox ID="txtCreateContactPersonPhone" runat="server" Width="300px"></asp:TextBox>
                                    <asp:RegularExpressionValidator ID="regexvalPhone" runat="server" ErrorMessage="Det valgte telefonnummer er ugyldigt" ToolTip="Det valgte telefonnummer er ugyldigt" ValidationGroup="AdminCreateContactPerson" ValidationExpression="^((\(?\+45\)?)?)(\s?\d{2}\s?\d{2}\s?\d{2}\s?\d{2})$" ControlToValidate="txtCreateContactPersonPhone" Text="*" ForeColor="Red" Display="Dynamic"></asp:RegularExpressionValidator>
                                </div>
                            </div>

                            <div class="inputFormSmallRow floatLeft">
                                <div class="inputFormSmallCellLeft floatLeft">
                                    <asp:Label ID="lblCreateContactPersonEmail" runat="server" Text="E-mail:"></asp:Label>
                                </div>
                                <div class="inputFormSmallCellRight floatRight">
                                    <asp:TextBox ID="txtCreateContactPersonEmail" runat="server" Width="300px"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="rfvalEmail" runat="server" ErrorMessage="E-mail is required" ToolTip="E-mail is required" Text="*" ControlToValidate="txtCreateContactPersonEmail" ValidationGroup="AdminCreateContactPerson" ForeColor="Red"></asp:RequiredFieldValidator>
                                    <asp:RegularExpressionValidator ID="regexvalEmail" runat="server" ErrorMessage="Den valgte E-mail er ugyldig" ValidationExpression="^.+@[^\.].*\.[a-z]{2,}$" ControlToValidate="txtCreateContactPersonEmail" ValidationGroup="AdminCreateContactPerson" ToolTip="Den valgte E-mail er ugyldig" Display="Dynamic" Text="*" ForeColor="Red"></asp:RegularExpressionValidator>
                                </div>
                            </div>

                            <div class="inputFormSmallRow floatLeft">
                                <div class="inputFormSmallCellLeft floatLeft">
                                    <asp:Label ID="lblCreateContactPersonTitle" runat="server" Text="Titel:"></asp:Label>
                                </div>
                                <div class="inputFormSmallCellRight floatRight">
                                    <asp:TextBox ID="txtCreateContactPersonTitle" runat="server" Width="300px"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="rfvalTitle" runat="server" ErrorMessage="Title is required" ToolTip="Title is required" Text="*" ControlToValidate="txtCreateContactPersonTitle" ValidationGroup="AdminCreateContactPerson" ForeColor="Red"></asp:RequiredFieldValidator>
                                </div>
                            </div>

                            <div class="inputFormSmallRow floatLeft">
                                <div class="inputFormSmallCellLeft floatLeft">
                                    <asp:Label ID="lblCreateContactPersonDepartment" runat="server" Text="Afdeling:"></asp:Label>
                                </div>
                                <div class="inputFormSmallCellRight floatRight">
                                    <asp:TextBox ID="txtCreateContactPersonDepartment" runat="server" Width="300px"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="rfvalDepartment" runat="server" ErrorMessage="Department is required" ToolTip="Department is required" Text="*" ControlToValidate="txtCreateContactPersonDepartment" ValidationGroup="AdminCreateContactPerson" ForeColor="Red"></asp:RequiredFieldValidator>
                                </div>
                            </div>

                            <div class="inputFormSmallRow floatLeft">
                                <div class="inputFormSmallCellLeft floatLeft">
                                    <asp:Label ID="lblCreateContactPersonImage" runat="server" Text="Billede:"></asp:Label>
                                </div>
                                <div class="inputFormSmallCellRight floatRight">
                                    <asp:FileUpload ID="fuCreateContactPersonImage" runat="server" />
                                    <br />
                                    <asp:RegularExpressionValidator ID="regexvalContactPersonImage" runat="server" ForeColor="Red" ControlToValidate="fuCreateContactPersonImage" ValidationGroup="AdminCreateContactPerson" ErrorMessage="Filen du prøver at uploade er ikke tilladt" ValidationExpression=".*(\.[Jj][Pp][Gg]|\.[Gg][Ii][Ff]|\.[Jj][Pp][Ee][Gg]|\.[Pp][Nn][Gg])"></asp:RegularExpressionValidator>
                                </div>
                            </div>

                            <div class="inputFormSmallRow floatLeft">
                                <div class="floatRight">
                                    <asp:Button ID="btnAdminCreateContactPerson" runat="server" Text="Opret Kontaktperson" ValidationGroup="AdminCreateContactPerson" CssClass="button" OnClick="btnAdminCreateContactPerson_Click" />
                                </div>
                            </div>
                        </div>
                        <div class="inputFormSmallRight floatRight">
                            <asp:ValidationSummary ID="valSumAdminCreateContactPerson" ValidationGroup="AdminCreateContactPerson" runat="server" HeaderText="Følgende fejl blev fundet:" ForeColor="Red" />
                        </div>
                    </asp:Panel>

                    <asp:Label ID="lblAdminCreateContactPersonSucces" runat="server" Text="Medarbejderen er nu oprettet"></asp:Label>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
